<template>
  <!-- 提示弹窗 -->
  <fui-dialog :show="tipShow"
              :content="tipContent"
              maskClosable
              @click="tipBtn($event)"
              @close="tip()"></fui-dialog>
</template>

<script>
export default {
  props: {
    tipContent: String,
  },
  data () {
    return {
      tipShow: false
    }
  },
  methods: {
    tip () {
      this.tipShow = !this.tipShow
    },
    tipBtn (e) {
      console.log(e);
      if (e.index == 1) {
        this.$emit('emitEvent')
      }
      this.tip()
    }
  }
}
</script>

<style>
</style>